-2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
+Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_enter_text): use
+ the cursor position _after_ deleting the text
+ as the position to insert at. (#72717, Jan Mynarik)
+
+2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
* gtk/gtktreemodel.c
misprints in documentation for gtk_tree_row_reference_inserted()
-2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
+Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_enter_text): use
+ the cursor position _after_ deleting the text
+ as the position to insert at. (#72717, Jan Mynarik)
+
+2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
* gtk/gtktreemodel.c
misprints in documentation for gtk_tree_row_reference_inserted()
-2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
+Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_enter_text): use
+ the cursor position _after_ deleting the text
+ as the position to insert at. (#72717, Jan Mynarik)
+
+2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
* gtk/gtktreemodel.c
misprints in documentation for gtk_tree_row_reference_inserted()
-2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
+Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_enter_text): use
+ the cursor position _after_ deleting the text
+ as the position to insert at. (#72717, Jan Mynarik)
+
+2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
* gtk/gtktreemodel.c
misprints in documentation for gtk_tree_row_reference_inserted()
-2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
+Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_enter_text): use
+ the cursor position _after_ deleting the text
+ as the position to insert at. (#72717, Jan Mynarik)
+
+2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
* gtk/gtktreemodel.c
misprints in documentation for gtk_tree_row_reference_inserted()
-2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
+Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_enter_text): use
+ the cursor position _after_ deleting the text
+ as the position to insert at. (#72717, Jan Mynarik)
+
+2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
* gtk/gtktreemodel.c
misprints in documentation for gtk_tree_row_reference_inserted()
-2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
+Tue Feb 26 15:04:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkentry.c (gtk_entry_enter_text): use
+ the cursor position _after_ deleting the text
+ as the position to insert at. (#72717, Jan Mynarik)
+
+2002-02-26 Vitaly Tishkov <tvv@sparc.spb.su>
* gtk/gtktreemodel.c
misprints in documentation for gtk_tree_row_reference_inserted()
const gchar *str)
{
GtkEditable *editable = GTK_EDITABLE (entry);
- gint tmp_pos = entry->current_pos;
+ gint tmp_pos;
if (gtk_editable_get_selection_bounds (editable, NULL, NULL))
gtk_editable_delete_selection (editable);
gtk_entry_delete_from_cursor (entry, GTK_DELETE_CHARS, 1);
}
+ tmp_pos = entry->current_pos;
gtk_editable_insert_text (editable, str, strlen (str), &tmp_pos);
gtk_editable_set_position (editable, tmp_pos);
}